Skip to content

Instantly share code, notes, and snippets.

@KhaosT
KhaosT / HDMI on Apple Vision Pro.md
Last active May 17, 2024 14:43
Guide for using Apple Vision Pro as HDMI display

Displaying HDMI sources on Apple Vision Pro

While it's possible to stream most content to Apple Vision Pro directly over the internet, having the ability to use Apple Vision Pro as an HDMI display can still be useful.

Since Apple Vision Pro does not support connecting to an HDMI input directly or using an HDMI capture card, we have to be a little creative to make this work. NDI provides the ability to stream HDMI content over a local network with really low latency, and it works great with Apple Vision Pro.

This page shows the setup I’m using.

@import url("https://fonts.googleapis.com/css?family=Roboto+Slab:100,300,400,700");
@import url("https://fonts.googleapis.com/css?family=Raleway:300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i");
* {
margin: 0;
border: 0;
box-sizing: border-box;
}
:root {
@fomvasss
fomvasss / Шпаргалка по Markdown.md
Created October 26, 2018 22:39
Шпаргалка по Markdown
@f41ardu
f41ardu / tello_opencv_Cam.py
Last active May 17, 2024 14:37
Raspberry, python3.7, opencv and Tello.
#
# --- (c) 01/2020 f41ardu
#
# Tello cam using opencv proof of concept
# issue: huge delay -> Tipp scale down video size for improved performance on Raspberry PI 3+
# May also work with older versions of opencv supporting incomming udp streams.
#
#import numpy as np
# import opencv 4.2.0
@fsworld009
fsworld009 / 1 steam_deck_notes.md
Last active May 17, 2024 14:36
Steam deck setup notes.md

Disk encryption

None. ValveSoftware/SteamOS#771 Be careful on what you are storing in this device (using browser and login to your accounts is NOT a good idea for now).

Barrier

Being able to control Steamdeck by using mouse and keyboard connected to PC/Laptop

@rlane
rlane / matrix.glsl
Created September 17, 2011 01:12
GLSL matrix functions
mat4 translate(vec3 d)
{
return mat4(1, 0, 0, d.x,
0, 1, 0, d.y,
0, 0, 1, d.z,
0, 0, 0, 1);
}
mat4 scale(float c)
{
@idleberg
idleberg / vscode-macos-context-menu.md
Last active May 17, 2024 14:32
“Open in Visual Studio Code” in macOS context-menu

Open in Visual Studio Code

  • Open Automator
  • Create a new document
  • Select Quick Action
  • Set “Service receives selected” to files or folders in any application
  • Add a Run Shell Script action
    • your default shell should already be selected, otherwise use /bin/zsh for macOS 10.15 (”Catalina”) or later
    • older versions of macOS use /bin/bash
  • if you're using something else, you probably know what to do 😉
@DaniilBabanin
DaniilBabanin / monaco-editor-textfield.js
Last active May 17, 2024 14:30
Userscript that adds monaco editor ro gitlab textfields
// ==UserScript==
// @name Add Monaco Editor to input fields
// @namespace Violentmonkey Scripts
// @match https://gitlab.org/*
// @grant none
// @version 1.0
// @author Daniil Babanin & CHATGPT4o
// @description Replace a specific textarea with Monaco Editor
// ==/UserScript==
@smyers119
smyers119 / erspan.sh
Last active May 17, 2024 14:30
erspan
#!/bin/bash
# This script is meant to be run as root at boot via cron
# add "@reboot /root/erspan.sh" to crontab -e
# you can have multiple scripts for multiple tunnels
# This will allow you to set up a Erspan v1 tunnel and mirror all traffic from interface x to the erspan
# Author: Steven Myers samyers911@gmail.com
######Configure#####
#Direction ingress=port to erspan, egress= erspan to port
direction=ingress
@vested-sigil
vested-sigil / notion.yaml
Created January 26, 2024 00:07
swagger spec for notion.so for custom GPTS
openapi: 3.0.0
info:
title: Notion API
description: API for interacting with Notion resources such as pages and databases.
version: 1.0.0
servers:
- url: https://api.notion.com/v1
description: Main API server
paths:
/pages/{page_id}: